import request from '../../utils/Request'

export const saveTask = data => {
  return request({
    method: 'post',
    url: '/api/manage/task/save',
    data: data
  })
}

export const deleteTask = bId => {
  return request({
    method: 'get',
    url: '/api/manage/task/delete/' + bId,
    params: {}
  })
}

export const listTask = (data) => {
  return request({
    method: 'get',
    url: '/api/manage/task/list?',
    params: data
  })
}


export const selectTask = bId => {
  return request({
    method: 'get',
    url: '/api/manage/task/select/' + bId,
    params: {}
  })
}

export const startTask = bId => {
  return request({
    method: 'get',
    url: '/api/manage/task/start/' + bId,
    params: {}
  })
}

export const stopTask = bId => {
  return request({
    method: 'get',
    url: '/api/manage/task/stop/' + bId,
    params: {}
  })
}